<hr />
<input class="{if $Field.className eq ''}inp_inpt{else}{$Field.className}{/if}" type="file" name="{$Field.name}" value="{$Field.value}"{if $Field.id neq ''} id="{$Field.id}"{/if}{if $Field.other neq ''} {$Field.other|unescape}{/if} />{if $Field.textAfterField}&nbsp;{$Field.textAfterField|unescape}{/if}{if $Field.textUnderField}<br /><sup>{$Field.textUnderField|unescape}</sup>{/if}
{if $Field.sizes neq ''}
 {if $Field.remoteServerLink neq ''}{assign var='IMHOST' value=$Field.remoteServerLink}{else}{assign var='IMHOST' value=$HOST|cat:"/"}{/if}
 {foreach from=$Field.sizes item='curr' key='prefix'}
 {assign var='pref' value=$prefix}
 {/foreach}
 {section name=foo start=0 loop=$Field.pics.$pref step=1}
  {foreach from=$Field.sizes item='curr' key='prefix'}
   {assign var='piclink' value=$IMHOST|cat:$Field.docroot_dirname|cat:$Field.pics.$prefix[$smarty.section.foo.index]}
   <br /><br />
  {$lang.admin.image} {$lang.admin.link}:&nbsp;&nbsp;<a href="{$piclink}" target="_blank">{$piclink}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="{$lang.admin.delete} {$lang.admin.image}" onClick="if(confirm('{$lang.admin.askToDelImage}')){ldelim}document.forms['{$Config.ImageFormName}'].imageName.value='{$Field.pics.$prefix[$smarty.section.foo.index]|replace:$Field.filetype:''|replace:$prefix:''}';document.forms['{$Config.ImageFormName}'].fieldName.value='{$Field.name}';document.forms['{$Config.ImageFormName}'].imageFileType.value='{$Field.filetype}';document.forms['{$Config.ImageFormName}'].dirName.value='{$Field.dirname}';document.forms['{$Config.ImageFormName}'].act.value='deleteimage';document.forms['{$Config.ImageFormName}'].submit();{rdelim}else{ldelim}return false{rdelim}" /><br /><br />
  <img src="{$piclink}" border="0" alt="{$Field.size}" style="background:{$Config.imageBGColor};" />
  {/foreach}
 {/section}
{else}
 {if $Field.remoteServerLink neq ''}{assign var='IMHOST' value=$Field.remoteServerLink}{else}{assign var='IMHOST' value=$HOST|cat:"/"}{/if}
 {foreach from=$Field.pics item='curr' key='key'}
  {if $curr neq ''}
  {assign var='piclink' value=$IMHOST|cat:$Field.docroot_dirname|cat:$curr}
  <br /><hr /><br />
  {$lang.admin.image} {$lang.admin.link}:&nbsp;&nbsp;<a href="{$piclink}" target="_blank">{$piclink}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="{$lang.admin.delete} {$lang.admin.image}" onClick="if(confirm('{$lang.admin.askToDelImage}')){ldelim}document.forms['{$Config.ImageFormName}'].imageName.value='{$curr|replace:$Field.filetype:''}';document.forms['{$Config.ImageFormName}'].fieldName.value='{$Field.name}';document.forms['{$Config.ImageFormName}'].imageFileType.value='{$Field.filetype}';document.forms['{$Config.ImageFormName}'].dirName.value='{$Field.dirname}';document.forms['{$Config.ImageFormName}'].act.value='deleteimage';document.forms['{$Config.ImageFormName}'].submit();{rdelim}else{ldelim}return false{rdelim}" /><br /><br />
  <img src="{$piclink}" border="0" alt="{$Field.size}" style="background:{$Config.imageBGColor};" />
  {/if}
 {/foreach}
{/if}
<hr />